<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="template.xhtml">

	<ui:define name="content">
		<h:form>
			<h:dataTable var="category" value="#{listCategories.categories}" width="75%" rendered="#{not empty listCategories.categories}">
				<h:column>
					<h:outputLink value="/teshop/viewCategory.jsf?categoryId=#{category.categoryId}" >
						<h:outputText value="#{category.categoryName}"></h:outputText>
					</h:outputLink>
				</h:column>
			</h:dataTable>
		</h:form>
	</ui:define>

</ui:composition>